package com.fit.WatchShop.pages;

import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.annotations.SessionState;
import org.apache.tapestry5.ioc.annotations.Inject;

import com.fit.WatchShop.interfaces.Popravka;
import com.fit.WatchShop.interfaces.User;
import com.fit.WatchShop.interfaces.Watch;
import com.fit.WatchShop.service.Popravke;


public class ViewPopravka {

	@Inject
	@Property
	private Popravke popravke;
	
	@Property
	private Popravka currentPopravka;
	
	public Watch getFirstWatch() {
		return currentPopravka.getWatch().get(0);
	}
	
	@SessionState
	private User user;

	private boolean userExists;
	
	public User getUser() {
		return user;
	}
	
}
